import { Module } from '@nestjs/common';
import { SysService } from './sys.service';
import { SysController } from './sys.controller';
import { MailService } from '../common/mail/mail.service';
import { RedisModule } from '../common/redis/redis.module';
import { UserModule } from '../user/user.module';
import { TypeOrmModule } from '@nestjs/typeorm';
import { UserEntity } from '../user/entities/user.entity';
import { ConfigService } from '../common/config/config.service';
import { SysConfigEntity } from '../common/config/entities/config.entity';

@Module({
  imports: [
    RedisModule,
    UserModule,
    TypeOrmModule.forFeature([UserEntity, SysConfigEntity]),
  ],
  controllers: [SysController],
  providers: [SysService, MailService, ConfigService],
})
export class SysModule {}
